package org.example.aienglishapp.service.progress;


import org.example.aienglishapp.entity.progress.LearningStat;
import org.example.aienglishapp.mapper.progress.LearningStatMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LearningStatService {

    private final LearningStatMapper learningStatMapper;

    @Autowired
    public LearningStatService(LearningStatMapper learningStatMapper) {
        this.learningStatMapper = learningStatMapper;
    }

    public List<LearningStat> getLearningStats(Long userId) {
        return learningStatMapper.getLearningStats(userId);
    }
}